//
//  launchView.swift
//  IDF
//
//  Created by 陈徐挺 on 2018/4/9.
//  Copyright © 2018 Jesse.chen. All rights reserved.
//

import UIKit
import Reusable

class LaunchView: UIView, NibOwnerLoadable {
    
    /*
     // Only override draw() if you perform custom drawing.
     // An empty implementation adversely affects performance during animation.
     override func draw(_ rect: CGRect) {
     // Drawing code
     }
     */
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.loadNibContent()
        
        
    }
    @IBAction func borrowClick(_ sender: UIButton) {
        appLaunched = true
        removeFromSuperview()
    }
    @IBAction func payBackClick(_ sender: UIButton) {
        
        mainTabBarController.selectedIndex = 1
        nowNavgationController = mainTabBarController.viewControllers![1] as! UINavigationController
        removeFromSuperview()
        
    }
    
}
